

from django.contrib.auth.models import Group,Permission
from meiduo_admin.custom_paginations import MyPage
from meiduo_admin.serializers.group_serializers import *
from rest_framework.viewsets import ModelViewSet
from rest_framework.generics import ListAPIView


class PermSimpleView(ListAPIView):
    queryset = Permission.objects.all()
    serializer_class = PermSimpleSerializer



class GroupViewSet(ModelViewSet):
    queryset = Group.objects.all()
    serializer_class = GroupModelSerializer
    pagination_class = MyPage